package com.sgb.goods.view.adapter;

import androidx.databinding.ViewDataBinding;

import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.goods.BR;
import com.sgb.goods.R;
import com.sgb.goods.entity.InvoiceDetailsEntity;
import com.sgb.goods.utils.base.adapter.BaseCommonAdapter;

/**
 * 订单列表中的发票信息适配器
 * @author cyj
 */
public class InvoiceDetailsAdapter extends BaseCommonAdapter<InvoiceDetailsEntity.ListDTO> {

    public InvoiceDetailsAdapter() {
        super(R.layout.goods_item_invoice_details, BR.entity);
    }

    @Override
    protected void convert(BaseViewHolder baseHolder, ViewDataBinding dataBinding, InvoiceDetailsEntity.ListDTO entity) {
        baseHolder.addOnClickListener(R.id.invoice_operation);
    }
}
